<template>
	<span v-if="text || textT" :class="{ block }">
		{{
			// @ts-ignore
			text || (Array.isArray(textT) ? $t(...textT) : $t(textT))
		}}
	</span>
</template>

<script lang="ts" setup>
defineOptions({
	name: 'BaseText'
})
defineProps({
	text: {
		type: [Number, String],
		default: ''
	},
	textT: {
		type: [String, Array],
		default: ''
	},
	block: {
		type: Boolean,
		default: false
	}
})
</script>
